package com.aratek.huwai.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @Author 姜寄羽
 * 料理表
 * @Date 2018/1/22 17:19
 */
@Entity
@Table(name = "PROGRAM")
public class ProgramEntity implements Serializable{

    private Integer id;

    private String name;

    @Id
    @Column
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(length = 1024,nullable = false)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
